package com.yrh.service.impl;

import com.yrh.bean.TCart;
import com.yrh.dao.TCartDao;
import com.yrh.dao.impl.TCartDaoImpl;
import com.yrh.service.TCartService;

import java.util.List;
/*购物车业务层接口实现类*/
public class TCartServiceImpl implements TCartService {
    private TCartDao dao=new TCartDaoImpl();
    @Override
    public List<TCart> allCart(TCart cart) {
        return dao.allCart(cart);
    }

    public int save(TCart tCart) {
        return dao.save(tCart);
    }

    @Override
    public int deleteCart(TCart tCart) {
        return dao.deleteCart(tCart);
    }
}
